<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/TGB.Master" CodeBehind="FrmChequerasABM.aspx.vb" Inherits="TGB.FrmChequerasABM" 
    title="Administracion de Cheques" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="DIV1" style="width: 100%; height: 18px; text-align: left; background-color: #ccccff;" >
    
        <asp:Label ID="LblTitulo" runat="server" CssClass="titulo" Text="Administracion de Cheques" Font-Underline="False" Height="8px" Width="296px" Font-Names="Calibri"></asp:Label>
        </div><hr /> 
    <div style="width: 99%; height: 133px; text-align: center; background-color: #efefef; vertical-align: middle;" id="DIV2">
        <br />
    <table class="tabla" style="width: 696px; height: 80px; text-align: center;" >
        <tr>
            <td align="right" style="width: 25%; height: 14px">
                <asp:Label ID="Label2" runat="server" Text="Banco" Width="104px" Font-Bold="True"></asp:Label></td>
            <td align="left" style="width: 25%; height: 14px">
                <asp:DropDownList ID="CboBanco" runat="server" CssClass="campotxt" Width="360px" AppendDataBoundItems="True" AutoPostBack="True">
                    <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                </asp:DropDownList></td>
            <td align="right" style="width: 25%; height: 14px">
            </td>
            <td align="left" style="width: 104%; height: 14px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 14px;">
                <asp:Label ID="Label1" runat="server" Text="Cuenta Bancaria" Width="104px" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%; height: 14px;" align="left" >
                <asp:DropDownList ID="CboCuenta" runat="server" CssClass="campotxt" Width="360px" AppendDataBoundItems="True">
                    <asp:ListItem Value="-1">Ninguno</asp:ListItem>
                </asp:DropDownList></td>
            <td align="right" style="width: 25%; height: 14px;">
                </td>
            <td style="height: 14px; width: 104%;" align="left" >
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 20px;">
                <asp:Label ID="LblComienzo" runat="server" Text="Comienzo" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%; height: 20px;" align="left" >
                <asp:TextBox ID="TxtComienzo" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="5" Width="40px" ValidationGroup="Guardar">00000</asp:TextBox>
                <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TxtFinaliza"
                    Display="Dynamic" ErrorMessage="Numero Incorrecto" MaximumValue="99999" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" CssClass="LabelErrorSmall">Numero Incorrecto</asp:RangeValidator></td>
            <td align="right" style="width: 25%; height: 20px;">
                </td>
            <td style="width: 104%; height: 20px;" align="left" >
                </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%; height: 20px;">
                <asp:Label ID="Label3" runat="server" Text="Finaliza" Font-Bold="True"></asp:Label></td>
            <td style="width: 25%; height: 20px;" align="left" >
                <asp:TextBox ID="TxtFinaliza" runat="server" CssClass="campotxt" Font-Bold="True" MaxLength="5" Width="40px" ValidationGroup="Guardar">00000</asp:TextBox>
                <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TxtComienzo"
                    Display="Dynamic" ErrorMessage="Numero Incorrecto" MaximumValue="99999" MinimumValue="1"
                    Type="Integer" ValidationGroup="Guardar" CssClass="LabelErrorSmall">Numero Incorrecto</asp:RangeValidator></td>
            <td align="right" style="width: 25%; height: 20px;">
                </td>
            <td style="width: 104%; height: 20px;" align="left" >
                </td>
        </tr>
        <tr>
            <td align="left" colspan="3" style="height: 20px">
                <asp:Label ID="LblError" runat="server" Width="480px" style="text-align: left" Font-Bold="True" Font-Names="Calibri" Font-Size="12px" ForeColor="Red" CssClass="LabelError"></asp:Label></td>
            <td align="left" style="width: 104%; height: 20px">
            </td>
        </tr>
        <tr>
            <td align="right" style="width: 25%">
            </td>
            <td align="left" style="width: 25%">
                <asp:HiddenField ID="HFChequera" runat="server" />
            </td>
            <td align="right" style="width: 25%">
            </td>
            <td align="left" style="width: 104%">
            </td>
        </tr>
        <tr>
            <td align="right" colspan="4" style="height: 21px">
                <asp:LinkButton ID="LinkGuardar" runat="server" ValidationGroup="Guardar">Guardar</asp:LinkButton> /
                <asp:LinkButton ID="LinkEliminar" runat="server">Eliminar</asp:LinkButton> /
                <asp:LinkButton ID="LinkBuscar" runat="server">Buscar</asp:LinkButton> /
                <asp:LinkButton ID="LinkCancelar" runat="server">Cancelar</asp:LinkButton>
            
            </td>
        </tr>
        
    </table>
        </div>
    <hr />
    <div style="width: 100%; height: 100%; background-color: #efefef">
        <asp:GridView ID="GridChequera" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC"
            BorderWidth="1px" CellPadding="4" CssClass="tabla"
            ForeColor="Black" GridLines="Horizontal" PageSize="15" Style="width: 100%; font-size: 12px; font-family: Calibri; text-align: center;" Width="3056px" BorderStyle="None" CellSpacing="1">
            <PagerSettings PageButtonCount="25" />
            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
            <Columns>
                <asp:TemplateField>
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        &nbsp;
                        <asp:LinkButton ID="LinkSeleccionar" runat="server" CommandName="Select">Ver</asp:LinkButton>
                        <asp:HiddenField ID="HFChequera" runat="server" Value='<%# Bind("CodigoChequera") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Comienza">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Comienzo") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblComienza" runat="server" Text='<%# Bind("Comienzo") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Ultimo">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Ultimo") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblUltimo" runat="server" Text='<%# Bind("Ultimo") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Cuenta Numero">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("NumeroCuenta") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblNumeroCuenta" runat="server" Text='<%# Bind("NumeroCuenta") %>'></asp:Label>
                        <asp:HiddenField ID="HFCuenta" runat="server" Value='<%# Bind("CodigoCuenta") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Banco">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Denominacion") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="LblDenominacion" runat="server" Text='<%# Bind("Denominacion") %>'></asp:Label>&nbsp;
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle BackColor="#CC3333" ForeColor="White" Font-Bold="True" />
            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>
</asp:Content>
